//
//  NavTitleButton.swift
//  微博项目
//
//  Created by admin on 16/3/2.
//  Copyright © 2016年 jin. All rights reserved.
//

import UIKit

class NavTitleButton: UIButton,CoverDelegate {

    /*
    // Only override drawRect: if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func drawRect(rect: CGRect) {
        // Drawing code
    }
    */
    override init(frame: CGRect) {
        super.init(frame: frame)
    }
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    override func layoutSubviews() {
        super.layoutSubviews()
        self.titleLabel?.frame = (self.titleLabel?.bounds)!
        self.imageView?.frame = CGRectMake(CGRectGetMaxX((self.titleLabel?.frame)!), (self.imageView?.frame.origin.y)!, (self.imageView?.frame.size.width)!, (self.imageView?.frame.size.height)!)
    }
}
